<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>瓷艺_可观艺术</title>
<meta name="Keywords" content="瓷器,瓷艺,可观艺术" />
<meta name="Description" content="瓷艺、瓷器的展示、销售、拍卖" />
<link href="${ctx}/style/common.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/style/painting.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.ciyi_type{margin: 0 auto;width: 960px;background-color: #ffffff;border: 1px solid #ccc;margin-top: 5px;}
.title_ciyi{font-size: 12px;}
</style>
</head>
<body>

<#include "/commons/head.ftl"/>

<div style="border: 1px solid #ccc;background: #ffffff;margin: 0 auto;width: 960px;height: 245px;margin-top: 5px;">
	  <#include "/commons/ad_fragment.ftl"/>
</div>

	<div class="ciyi_type">
		<div class="dszp_header">名师作品<div style="float: right;padding-right: 30px;"><a href="${ctx }/ciyi/ms.html">更多&gt;&gt;</a></div></div>
	 	  <#list mszp as result >
			<#include "/commons/ciyi_fragment.ftl"/>
		  </#list>
	</div>
	
	<div class="ciyi_type">
		<div class="dszp_header">高仿精品<div style="float: right;padding-right: 30px;"><a href="${ctx }/ciyi/gf.html">更多&gt;&gt;</a></div></div>
	  	<#list gfjp as result >
			<#include "/commons/ciyi_fragment.ftl"/>
		</#list>
	</div>

<#include "/commons/foot.ftl"/>

<script type="text/javascript">

$(function(){

	var count = $("#play_list a").size();
	$("#play_info").html($("#play_list a").find("img").attr('alt'));
	$("#play_text li:first-child").find("img").attr("src","${ctx}/images/1B.gif");

    var adTimer;//计时器
    var i = 0;  //li 序号
	$("#play_text li").mouseover(function() {
		i = $("#play_text li").index($(this));
		if (i >= count) return;
		$("#play_info").html($("#play_list a").eq(i).find("img").attr('alt'));
		showImg(i);
	}).eq(0).mouseover();

    //滑入 停止动画，滑出开始动画.
    $('#play_list').hover(function(){
            clearInterval(adTimer);
        },function(){
            adTimer = setInterval(function(){
               $("#play_info").html($("#play_list a").eq(i).find("img").attr('alt'));
               showImg(i);
               i++;
               if(i == count){i=0;}
             } , 8000);
    }).trigger("mouseleave");
});

//通过控制top ，来显示不同的幻灯片
function showImg(index){
    var adHeight=$("#play_list").height();
    $(".slider").stop(true,false).animate({top: -adHeight*index},400);
    changeNumState(index);
}
//改变数字序号的状态
function changeNumState(i){
	if(i == 0){
		$("#play_text li").eq(i).find("img").attr("src","${ctx}/images/1B.gif");
		$("#ad_img_2").attr("src","${ctx}/images/2A.gif");
		$("#ad_img_3").attr("src","${ctx}/images/3A.gif");
	}
	else if(i==1){
		$("#play_text li").eq(i).find("img").attr("src","${ctx}/images/2B.gif");
		$("#ad_img_1").attr("src","${ctx}/images/1A.gif");
		$("#ad_img_3").attr("src","${ctx}/images/3A.gif");
	}else{
		$("#play_text li").eq(i).find("img").attr("src","${ctx}/images/3B.gif");
		$("#ad_img_1").attr("src","${ctx}/images/1A.gif");
		$("#ad_img_2").attr("src","${ctx}/images/2A.gif");
	}
}
</script>
</body>

</html>